#ifndef _AFTER_PROTOCOL_BOOTLOADER_H_
#define _AFTER_PROTOCOL_BOOTLOADER_H_

#include <stdint.h>

/// <summary>
/// 命令类型
/// </summary>
typedef enum 
{
    EntryBootloader=0,Reset=1,Data=2,CheckBootloader=3
}AfterBootloader_CmdType;

/// <summary>
/// 发送起始标识
/// </summary>
extern uint8_t g_AfterBootloader_Receive_StartFlag[2];

/// <summary>
/// 发送结束标识
/// </summary>
extern uint8_t g_AfterBootloader_Receive_EndFlag[2];

/// <summary>
/// 接收到进入Bootloader帧，反馈
/// </summary>
extern uint8_t g_AfterBootloader_EntryBootloaderReponse[12];

/// <summary>
/// 接收到进入Reset帧，反馈
/// </summary>
extern uint8_t g_AfterBootloader_ResetReponse[12];

//数据解析，返回0xff未异常
uint8_t AfterBootloader_DataParse(uint8_t *data, uint8_t dataLength);

#endif